From 03b3df6373849fa780aad1806fbb8f5c33dc554e Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 23 Jul 2025 13:50:07 +0200 Subject: [PATCH] luci-app-ddns: fix cacert param write for all cases follow-up to 929c520def5dd1393f831befac1bf9dee9f9d796 Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/ddns/overview.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index c5576392be..2a11193c74 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -457,8 +457,7 @@ return view.extend({ o.description = _('CA certificate bundle file that will be used to download services data. Set IGNORE to skip certificate validation.'); o.placeholder = 'IGNORE'; o.write = function(section_id, value) { - if(value == 'ignore') - uci.set('ddns', section_id, 'cacert', value.toUpperCase()); + uci.set('ddns', section_id, 'cacert', value == 'ignore' ? value.toUpperCase() : value); }; o = s.taboption('global', form.Value, 'services_url', _('Services URL Download')); @@ -810,8 +809,7 @@ return view.extend({ o.rmempty = false; o.optional = true; o.write = function(section_id, value) { - if(value == 'ignore') - uci.set('ddns', section_id, 'cacert', value.toUpperCase()); + uci.set('ddns', section_id, 'cacert', value == 'ignore' ? value.toUpperCase() : value); }; }; -- 2.30.2